utf.is_html = 1;
utf.utfstring = (char*)str;
- return strip_html(&utf); // util.c
+ return strip_html(&utf); // util.cc
}
char*
strip_html(const utf_string* in)
{
+#if 0
+ // If we were willing to link core against QtGui (not out of the question)
+ // we could just do...and either decide whether to add handling for [IMG]
+ // or just say we don't do that any more.
+ QTextDocument doc;
+ doc.setHtml( in->utfstring );
+ return xstrdup(CSTR(doc.toPlainText().simplified()));
+#else
char* outstring, *out;
char* incopy, *instr;
char tag[8];
xfree(incopy);
}
return (outstring);
+#endif
}
typedef struct {